<template>
  <div>
    父亲姓名:metpoid 老婆姓名
    <input type="text" v-model="wifeName" /> 大儿媳妇姓名:{{ sonsWife }}
    <hr />
    <son1 :matherName="wifeName" @event1="fn"></son1>
    <hr />
    <son2 :matherName="wifeName" :dasao="sonsWife"></son2>
  </div>
</template>

<script>
import son1 from "./son1.vue";
import son2 from "./son2.vue";
export default {
  name: "Jop1Father",
  components: { son1, son2 },
  data() {
    return {
      wifeName: "",
      sonsWife: "",
    };
  },

  mounted() {},

  methods: {
    fn(value) {
      this.sonsWife = value;
    },
  },
};
</script>

<style lang="scss" scoped></style>
